package org.example.controller;

import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.example.common.configs.log.LogAdvice;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author weigang
 * @create 2022-11-14 14:27
 */

@RestController
@AllArgsConstructor
@RequestMapping("/eureka")
@Slf4j
public class EurekaController {

    @PostMapping("/testEureka")
    @LogAdvice(desc = "test eureka", operateType = "query")
    public void testEureka(){
        // 消费数据
        System.out.println(" >>>> publish message OK <<<< ");
        log.info(" >>>> publish message OK <<<< ");
    }
}
